Optimal. Leaf size=82 \[ \frac{2 B \sqrt{\cos (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right ) \sqrt{b \sec (c+d x)}}{b d}+\frac{2 A E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0678043, antiderivative size = 82, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {3787, 3771, 2639, 2641} \[ \frac{2 A E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3787
Rule 3771
Rule 2639
Rule 2641
Rubi steps
\begin{align*} \int \frac{A+B \sec (c+d x)}{\sqrt{b \sec (c+d x)}} \, dx &=A \int \frac{1}{\sqrt{b \sec (c+d x)}} \, dx+\frac{B \int \sqrt{b \sec (c+d x)} \, dx}{b}\\ &=\frac{A \int \sqrt{\cos (c+d x)} \, dx}{\sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{\left (B \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx}{b}\\ &=\frac{2 A E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{b d}\\ \end{align*}
Mathematica [A] time = 0.088494, size = 54, normalized size = 0.66 \[ \frac{2 \left (B \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )+A E\left (\left .\frac{1}{2} (c+d x)\right |2\right )\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.238, size = 445, normalized size = 5.4 \begin{align*} 2\,{\frac{1}{d\sin \left ( dx+c \right ) b} \left ( iA{\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \cos \left ( dx+c \right ) \sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\sin \left ( dx+c \right ) -iA{\it EllipticE} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \cos \left ( dx+c \right ) \sin \left ( dx+c \right ) \sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}+iB{\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \cos \left ( dx+c \right ) \sin \left ( dx+c \right ) \sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}+iA\sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}{\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \sin \left ( dx+c \right ) -iA{\it EllipticE} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \sin \left ( dx+c \right ) \sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}+iB{\it EllipticF} \left ({\frac{i \left ( -1+\cos \left ( dx+c \right ) \right ) }{\sin \left ( dx+c \right ) }},i \right ) \sin \left ( dx+c \right ) \sqrt{ \left ( \cos \left ( dx+c \right ) +1 \right ) ^{-1}}\sqrt{{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}-A \left ( \cos \left ( dx+c \right ) \right ) ^{2}+A\cos \left ( dx+c \right ) \right ) \sqrt{{\frac{b}{\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B \sec \left (d x + c\right ) + A}{\sqrt{b \sec \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B \sec \left (d x + c\right ) + A\right )} \sqrt{b \sec \left (d x + c\right )}}{b \sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A + B \sec{\left (c + d x \right )}}{\sqrt{b \sec{\left (c + d x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B \sec \left (d x + c\right ) + A}{\sqrt{b \sec \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]